home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 010 / maze.arc / EMAZE.FIX < prev    next >
Encoding:
Text File  |  1986-12-31  |  1.9 KB  |  38 lines

  1.                                  Instructions
  2.                                       for
  3.                        Modifying EMAZE.PAS and SMAZE.PAS
  4.                                   to Use the
  5.               IBM Personal Computer Graphics Printer Model 5152
  6.  
  7.      EMAZE.PAS and SMAZE.PAS were written to run with an Epson MX-80
  8. printer.  Although the IBM Personal Computer Graphics Printer uses the
  9. same enclosure, it does not use the same escape sequences.  This
  10. document explains how to convert EMAZE.PAS and SMAZE.PAS to run with the
  11. IBM printer.  Each escape sequence used by the programs is explained;
  12. this document may help you convert the programs to use other printers.
  13.  
  14.      On the Epson MX-80, "WRITE(LST,CHR(27)); WRITE(LST,'@');" does a
  15. "power on" reset and sets the top of form.  On the IBM Personal Computer
  16. Graphics Printer, use "WRITE(LST,CHR(27); WRITE(LST,'4');".  This only
  17. sets the top of form; you may have to turn your printer off and on after
  18. setting your page at top of form.
  19.  
  20.      On the Epson, "WRITE(LST,CHR(27)); WRITE(LST,'2');" sets the line
  21. spacing to the default of 1/6".  "WRITE(LST,CHR(27)); WRITE(LST,'A');
  22. WRITE(LST,CHR(12)); WRITE(LST,CHR(27)); WRITE(LST,'2');" will do this on
  23. the IBM.
  24.  
  25.      On the Epson, "WRITE(LST,CHR(27)); WRITE(LST,'A');
  26. WRITE(LST,CHR(8));" will set the line spacing to 8/72".  On the IBM, you
  27. must follow it by "WRITE(LST,CHR(27)); WRITE(LST,'2');" to make it take
  28. effect.
  29.  
  30.      The other escape sequences used by EMAZE.PAS and SMAZE.PAS remain
  31. the same.  The sequence "WRITE(LST,CHR(27)); WRITE(LST,'K');
  32. WRITE(LST,CHR(224)); WRITE(LST,CHR(1));" sets the dots graphics mode to
  33. 480 dots per 8 inches and tells the printer to expect 224+1*256 (480)
  34. bytes of data.  (The printers print 8 rows of dots at a time.)
  35. "WRITE(LST,CHR(12));" causes the printer to do a page feed.
  36.  
  37.      Good luck!
  38.